import request from '@/utils/request'

// 查询采区基本信息列表
export function listMinePanel(query) {
  return request({
    url: '/dispatch/minePanel/list',
    method: 'get',
    params: query
  })
}

// 查询采区基本信息详细
export function getMinePanel(miningPanelId) {
  return request({
    url: '/dispatch/minePanel/' + miningPanelId,
    method: 'get'
  })
}

// 新增采区基本信息
export function addMinePanel(data) {
  return request({
    url: '/dispatch/minePanel',
    method: 'post',
    data: data
  })
}

// 修改采区基本信息
export function updateMinePanel(data) {
  return request({
    url: '/dispatch/minePanel',
    method: 'put',
    data: data
  })
}

// 删除采区基本信息
export function delMinePanel(miningPanelId) {
  return request({
    url: '/dispatch/minePanel/' + miningPanelId,
    method: 'delete'
  })
}
